package co.edu.unal.geditor.view;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;

import co.edu.unal.geditor.model.ArcElement;
import co.edu.unal.geditor.model.GraphElement;

public class ArcGraphView extends ElementView {
	public ArcGraphView(GraphElement ge) {
		super(ge);

		assert ge instanceof ArcElement;
	}

	@Override
	public void paint(final Graphics g) {
		final Point ul = m_owner.getUpLeft();
		final Color color = m_owner.getLinesColor();
		g.setColor(color);
		g.drawArc(ul.x, ul.y, m_owner.getBoundBox().getWidth(), m_owner
				.getBoundBox().getHeight(),0,ArcElement.getDefaultAngle());
		
		super.paint(g);
	}
}
